<admintpl file="header" />
<link href="/public/qiniu/css/formdata.css" rel="stylesheet">
<script src="/public/qiniu/js/jquery/jquery.min.js"></script>

<script src="/public/qiniu/js/formdata.js"></script>
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li ><a href="{:U('Video/game_recommend')}">游戏列表</a></li>
			<li class="active"><a >游戏添加</a></li>
		</ul>
		<form method="post"  id="testform"  class="form-horizontal js-ajax-form" action="{:U('Video/add_game_post')}">
			<fieldset>


				<div class="control-group">
					<label class="control-label">游戏封面图片</label>
					<div class="controls">
						<div>
							<input type="hidden" name="thumb2" id="thumb2" value="">
							<a href="javascript:void(0);" onclick="flashupload('thumb_images', '附件上传','thumb2',thumb_images,'1,jpg|jpeg|gif|png|bmp,1,,,1','','','');return false;">
								<img src="__TMPL__Public/assets/images/default-thumbnail.png" id="thumb2_preview" width="135" style="cursor: hand" />
							</a>
							<input type="button" class="btn btn-small" onclick="$('#thumb2_preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#thumb2').val('');return false;" value="取消图片">
						</div>
						<span class="form-required"></span>
					</div>
				</div>

				<div class="control-group" id="name" >
					<label class="control-label">游戏名称</label>
					<div class="controls">
						<input type="text" name="name">
					</div>
				</div>

				<div class="control-group" id="brief" >
					<label class="control-label">游戏简短介绍</label>
					<div class="controls">
						<input type="text" name="brief">
					</div>
				</div>

				<div class="control-group" id="url" >
					<label class="control-label">游戏链接</label>
					<div class="controls">
						<input type="text" name="url">
					</div>
				</div>


			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
				<a class="btn" href="{:U('Video/game_recommend')}">{:L('BACK')}</a>
			</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/content_addtop.js"></script>
<script>
    $(function(){
        $("#down_2").click(function(){ //是否支持下载,显示
         $("#is_down").attr("style","display:block;");
    });
    $("#down_1").click(function(){ //是否支持下载,隐藏
        $("#is_down").attr("style","display:none;");
    });


    $("#type_0").click(function(){ //是否收费，隐藏
        $("#is_charge").attr("style","display:none;");
    });

    $("#type_1").click(function(){ //是否收费，显示
        $("#is_charge").attr("style","display:block;");
    });

    })
</script>
</body>
</html>